Page({
  data:{
    houseDetail:''
  },
 onLoad({id}){
  this.gethouseDetail(id)
 },
 async gethouseDetail(id){
  const res=await wx.http.get('/room/'+id)
  // console.log(res)
  this.setData({
    houseDetail:res
  })
 },
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id='+this.data.houseDetail.id,
    })
  },
})
